package com.nervous.jiaoli.user.home.dao;

import java.util.List;
import com.nervous.jiaoli.user.home.Module;
import com.nervous.jiaoli.user.user.User;
import org.apache.ibatis.annotations.Select;

public interface HomeDao {

    public List<Module> findModuleListByUser(String userId);

    @Select("select * from t_user where u_id = #{userId}")
    public User findCurrentUserAllInfo(String userId);

    @Select("SELECT sm_visible_mode FROM sys_module WHERE sm_id = #{sm_id}")
    public Integer findVisibleModeBySmId(String sm_id);
}